Fig organization in the development of PHP-related specifications, referred to as PSR. There are now 4 code specifications, the recent time to translate into the Chinese version. Suggest doing PHP students are concerned about.Document Warehouse
PHP variable naming rules
1. The variable begins with the dollar sign $. such as $name, $age.
2, dollar sign $ The first character that follows cannot be a number, only an underscore _ or a letter. Variables such as $1_1 are wrong.
3, in addition
FIG is developing a PHP-related specification, abbreviated as "SRS. At present, there are four code specifications, which have recently been translated into the Chinese version. Suggested PHP students are concerned about the document repository
This article introduces, PHP programming in the naming standard, including the basic concept, camel-style nomenclature, hump method, Pascal method, the need for friends, may wish to refer to the study.Camel-like nomenclature (also called Hump
(Conversion) PHP (similar to other languages) encoding standards, php EncodingTo improve work efficiency, ensure development effectiveness and rationality, and maximize the readability and reusability of program code, and improve communication
Naming rules for php programming
PrintEmployeePaychecks ();
Print_employee_paychecks ();
The first function name uses the camel naming method-each logical breakpoint in the function name is marked with an
Go deep into the standardized programming naming summary of php. I didn't pay attention to my naming rules during my previous work. now I have to strictly follow the naming rules of my camper: the relevant definitions are as follows:
The related
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.